import { createApp } from 'vue'
import App from './App.vue'

const app = createApp(App)
//路由
import router from './router/index'
//饿了么
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//饿了么ICON组
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
//Pinia全局变量
import {createPinia} from 'pinia'
const store =createPinia()
//echarts
import * as echarts from 'echarts'//引入echarts
//全局引入echarts
app.config.globalProperties.$echarts = echarts//全局使用
app.config.globalProperties.$httpUrl = 'https://www.evogodz.cn'//图片网址,图片前缀,因为图片都是/xxx/xxx 没有前面的https// 来自哪个地方

app.use(router)//路由
app.use(ElementPlus)//饿了么
app.use(store)//pinia菠萝
app.mount('#app')
createApp(App)
